package com.yueyang.sojourn.server.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * @author andy.yang
 * @summary 商品价格日历信息
 * @Copyright (c) 2020, Yueyang Group All Rights Reserved.
 * @since 2020-02-17
 */
@Data
@ApiModel("商品价格日历")
public class SojournMerchPriceMonthVo {
    @ApiModelProperty(value = "日历年")
    private Integer year;

    @ApiModelProperty(value = "日历年简写(年后两位)")
    private Integer yearSimple;

    @ApiModelProperty(value = "日历月")
    private Integer month;

    @ApiModelProperty(value = "日历日期")
    private List<PriceDate> dates = new ArrayList<>();


    /**
     * 每天的价格
     */
    @Data
    public static class PriceDate{
        @ApiModelProperty(value = "日历天")
        Integer day;
        @ApiModelProperty(value = "日历周")
        Integer week;
        @ApiModelProperty(value = "日历VIP价格")
        BigDecimal vipPrice;
        @ApiModelProperty(value = "日历价格")
        BigDecimal price;
        @ApiModelProperty(value = "日历库存")
        Integer inventory;
    }

    /**
     * 默认选中的天
     */
    @Data
    public static class DefaultStartDate extends PriceDate{
        @ApiModelProperty(value = "日历年")
        private Integer year;

        @ApiModelProperty(value = "日历年简写(年后两位)")
        private Integer yearSimple;

        @ApiModelProperty(value = "日历月")
        private Integer month;
    }
}
